<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
<#assign base=request.contextPath  />
    <base id="base" href="${base}">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, adminUser-scalable=0">
    <link rel="stylesheet" href="${base}/static/win10/component/layui/css/layui.css" media="all">
    <script>
        var base =  "${base}";
    </script>
</head>
<body>
<br>
<form class="layui-form " action="">


    <button type="button" class="layui-btn" lay-event="edit" id="edit">编辑</button>

         <input disabled type="hidden" id="id" name="id" value="${topic.id!}" >
          <div class="layui-form-item">
              <label class="layui-form-label">试题标题</label>
              <div class="layui-input-block">
                  <input disabled type="text" id="topicTitle" name="topicTitle" value="${topic.topicTitle!}"  autocomplete="off" placeholder="请输入试题标题"
                         class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">问卷id</label>
              <div class="layui-input-block">
                  <input disabled type="text" id="questionnaireId" name="questionnaireId" value="${topic.questionnaireId!}"  autocomplete="off" placeholder="请输入问卷id"
                         class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">创建时间</label>
              <div class="layui-input-block">
                  <input disabled type="text" id="createTime" name="createTime" value="${topic.createTime!}"  autocomplete="off" placeholder="请输入创建时间"
                         class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">修改时间</label>
              <div class="layui-input-block">
                  <input disabled type="text" id="updateTime" name="updateTime" value="${topic.updateTime!}"  autocomplete="off" placeholder="请输入修改时间"
                         class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">0正常  1停用</label>
              <div class="layui-input-block">
                  <input disabled type="text" id="delFlag" name="delFlag" value="${topic.delFlag!}"  autocomplete="off" placeholder="请输入0正常  1停用"
                         class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">正确答案的 排序id  , 多个正确答案 拆分数组</label>
              <div class="layui-input-block">
                  <input disabled type="text" id="answerId" name="answerId" value="${topic.answerId!}"  autocomplete="off" placeholder="请输入正确答案的 排序id  , 多个正确答案 拆分数组"
                         class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">试题类型 /占时未设置</label>
              <div class="layui-input-block">
                  <input disabled type="text" id="topicType" name="topicType" value="${topic.topicType!}"  autocomplete="off" placeholder="请输入试题类型 /占时未设置"
                         class="layui-input">
              </div>
          </div>
</form>
<script src="${base}/static/win10/component/layui/layui.js?t=1"></script>
<script src="${base}/static/win10/js/jquery-1.8.3.min.js?t=1"></script>
<script>
console.log(222)
    console.log(${topic.id!})

console.log(222)

    $("#edit").click(function(){
        console.log(111)
        console.log(${topic.id!})
        console.log(111)


        window.location.href=base+"/papersstar/topic/admin/editTopicHtml?id="+"${topic.id!}"
    });



</script>
</body>
</html>